<?php	
	// Interface function	
	function oh_module_html($tokens) {
		global $oh_object_html;
		return $oh_object_html;
	} 

	// Option file required
	//require_once($oh['path']."/modules/mysql/ezsql/shared/ez_sql_core.php");
	//require_once($oh['path']."/modules/mysql/ezsql/mysql/ez_sql_mysql.php");
	
	// Main class of module
	class oh_class_html {
		function oh_class_html() {
		}
		function a($inner="",$href="",$onclick="") {
			$href = $this->flatting($href);
			$onclick = $this->flatting($onclick);
			return '<a href="'.$href.'" onclick="'.$onclick.'">'.$inner.'</a><br>';
		}
		function flatting($text) {
			$text = str_replace('"','\'',$text);
			if (strpos($text,")") > strpos($text,"(")) {
				return 'javascript:'.$text;
			} 
			return $text;
		}
	}
	
	// Main object of module
	global $oh_object_html;
	$oh_object_html = new oh_class_html();
?>
